#include "DVMREL2Data.h"

#include "DataStructure/Common/Validation.h"

using namespace SG::DataStructure::FEM;

bool SG::DataStructure::FEM::operator==(const DVMREL2Data::DESVARData& val1,
                                        const DVMREL2Data::DESVARData& val2) {
  FIELD_COMPARE(m_DVID)
  return true;
}
bool SG::DataStructure::FEM::operator==(const DVMREL2Data::DTABLEData& val1,
                                        const DVMREL2Data::DTABLEData& val2) {
  FIELD_COMPARE_ARR(m_CID, 8)
  return true;
}

bool SG::DataStructure::FEM::operator==(const DVMREL2Data& val1,
                                        const DVMREL2Data& val2) {
  FIELD_COMPARE(m_id)
  FIELD_COMPARE_ARR(m_TYPE, 8)
  FIELD_COMPARE(m_MID)
  FIELD_COMPARE(m_FID)
  FIELD_COMPARE(m_PMIN)
  FIELD_COMPARE(m_PMAX)
  FIELD_COMPARE(m_EQID)
  FIELD_COMPARE_ARR(m_MPNAME, 8)
  FIELD_COMPARE(m_domainId)
  return true;
}